<template>
	 <ex-dialog v-model="visible" draggable :title="'盘点单详情'+checkData.documentCode"
	:width=700>
	  <template #default>
		<el-form label-width="100" label-position="right" style="padding: 10px 10px 0 10px;">
			<el-row>
				<el-col :span="12">
					<el-form-item label="盘点单名称:" class="stockview">
						{{ checkData.documentName }}
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="盘点部门:" class="stockview">
						<ex-label :key="checkData.documentOrgId" code="SysOrganization" :value="checkData.documentOrgId"/>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="盘点管理员:" class="stockview">
						<template v-if="checkData.checkManageUsers">
							<div v-for="item in checkData.checkManageUsers">
								<ex-label :key="item" code="SysUser" :value="item"/>
							</div>
						</template>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="制定人:" class="stockview">
						<ex-label :key="checkData.documentCreateUser" code="SysUser" :value="checkData.documentCreateUser"/>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="制定日期:" class="stockview">
						<ex-label :key="checkData.documentCreateTime" format code="DATETIME" :value="checkData.documentCreateTime"/>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="盘点任务名称:" class="stockview">
						{{checkData.taskName}}
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="盘点任务编码:" class="stockview">
						{{checkData.taskCode}}
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="开始日期:" class="stockview">
						<ex-label :key="checkData.startDate" format code="DATETIME" :value="checkData.startDate"/>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="结束日期:" class="stockview">
						<ex-label :key="checkData.endDate" format code="DATETIME" :value="checkData.endDate"/>
					</el-form-item>
				</el-col>

			</el-row>
		</el-form>


	  </template>

	</ex-dialog>
  </template>

  <script>
  import scIconSelect from '@/components/scIconSelect'
  import ExRelTable from "@/components/exRelTable/index.vue";
  import ExLabel from "@/components/exLabel/index.vue";
  import exDialog from '@/components/exDialog';

  export default {
	emits: ['success'],
	components: {
		ExLabel,
	  ExRelTable,
	  scIconSelect,
	  exDialog
	},
	props: {
	  menu: {
		type: Object, default: () => {
		}
	  },
	},
	data() {
	  return {
		activeName: 'base',
		visible: false,
		form: {
			id: "",
			name: "",
			taskType: "",
			createOrg: "",
			status: "",
			startDate:"",
			endDate:"",
			description:"",
		},
		  checkData:{
		  },
		loading: false,
	  }
	},
	  mounted() {

	},
	onLoad() {
	},
	methods: {
	  //显示
	  open(entity) {
		  this.checkData = {};
		  this.visible = false;
		  Object.assign(this.checkData,entity);
		  this.visible = true;
	  },
	}
  }
  </script>

  <style scoped>
  h2 {
	font-size: 17px;
	color: #3c4a54;
	padding: 0 0 30px 0;
  }

  [data-theme="dark"] h2 {
	color: #fff;
  }


  .stockview {
    padding-top: 3.5px;
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 6.5px;
    border-bottom: 1px solid #e8f1ff;
}


  </style>
